package com.yidiandao.business.ui.widget.listview.viewholder;

import android.view.View;
import android.widget.TextView;

import com.yidiandao.business.R;
import com.yidiandao.business.data.response.QueryConfirmOrderGoodsResponse;
import com.yidiandao.business.ui.widget.listview.ViewHolder;

/** 确认订单-商品清单-减免Item-ViewHolder */
public class BuyGoodsReduceHolder extends ViewHolder {
    private TextView tvTitle;
    private TextView tvContent;

    @Override
    protected void initView(View rootView) {
        tvTitle = (TextView) rootView.findViewById(R.id.tv_title);
        tvContent = (TextView) rootView.findViewById(R.id.tv_content);
    }

    @Override
    protected int getItemLayoutId() {
        return R.layout.item_buy_goods_reduce;
    }

    public void refreshUI(QueryConfirmOrderGoodsResponse.Favourable data) {
        tvTitle.setText(data.getTitle());
        tvContent.setText(data.getContent());
    }
}
